Carbon


GetCPixel

Header: Quickdraw.h Carbon status: Supported

Determines the color of an individual pixel specified in the h and v parameters.

void GetCPixel (
    SInt16 h, 
    SInt16 v, 
    RGBColor *cPix
);
Parameter descriptions
h

The horizontal coordinate of the point at the upper-left corner of the pixel.

v

The vertical coordinate of the point at the upper-left corner of the pixel.

cPix

On return, the RGBColor structure for the pixel color.

DISCUSSION

Use the SetCPixel function to change the color of this pixel.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)